package com.hiof.servercommunication.receive.beans;

import java.util.ArrayList;
import java.util.List;

public class TeamMemberLocationPacket implements  Packet{

    private List<MemberLocationInfo> teamMemberLocations;

    public TeamMemberLocationPacket() {
        this.teamMemberLocations = new ArrayList<MemberLocationInfo>();
    }

    public List<MemberLocationInfo> getTeamMemberLocations() {
        return this.teamMemberLocations;
    }

    public void addTeamMemberLocationsElement(MemberLocationInfo element) {
        this.teamMemberLocations.add(element);
    }

    public String getMessage(){
        String result = "";
        for(MemberLocationInfo info: teamMemberLocations){
            result += info.getMessage() + ".  \n";
        }
        return  result;
    }
}
